package com.xyoto.takeawayBusiness.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyoto.takeawayBusiness.po.OrderShoppingPO;
import com.xyoto.takeawayBusiness.po.UserAddrPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel(value = "通用订单VO")
@Data
public class OrdersVO {

    @ApiModelProperty("订单id")
    private String id;

    @ApiModelProperty("店铺id")
    private Integer shopId;

    @ApiModelProperty("打包费")
    private Integer packPrice;

    @ApiModelProperty("配送费")
    private Integer sendPrice;

    @ApiModelProperty("支付金额（1元=100）")
    private Integer payerTotal;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("订单状态(1:处理中，2：已完成，3：已退款，4：已接单，5：订单异常， " +
            "6：未支付，7：已支付，8：已取消，9：待支付)")
    private Short orderStatus;

    @ApiModelProperty("订单类型")
    private Short orderType;

    @ApiModelProperty("预计送达时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date estimateTime;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("用户地址")
    private UserAddrPO userAddrPo;

    @ApiModelProperty("订单商品集合")
    private List<OrderShoppingPO> orderShoppingPoList;



}
